package com.person;

import java.sql.Array;

public class Student extends Person{

    public String age = "18";

    public Student (){
        System.out.println("子类无参方法被调用!");
    }
    public Student(String name,String age,String computer){
//        super(name,age,"100",computer);
        System.out.println("子类带参方法被调用!");
    }

    public void show(){
        System.out.println(this.age);
    }
    public void add(){
        this.show();
        String[] arg  =  {"1","2"};
        main(arg);
    }
    public static void main(String[] args) {
//        System.out.println(args);
//        Student student0 = new Student("张三","20","华为");
//        System.out.println(student0.age);
//        System.out.println(student0.name);
//        System.out.println(student0.computer);
//        System.out.println(student0.getMoney()); //同包下 私有变量不能被访问
    }

    public static void com(){
        System.out.println("111");
    }
}
